added all sched_functions except cancel