change order to let the logging make more sense
remove old hack
add a condition to the scheduler
scheduler doesn't need allocator
move init closer to cleanup