continuing to add log functions in sched.c