the rest of the scheduler stuff