reorder timer initialization so that timer_create does not depend on free