added check to monitor if the scheduler is working