added debug messages to schedule