added debug statements to scheduler