working up the scheduler