fixed typo in set scheduler routine. added debug printks