implementing APScheduler