getting rid of use of schedule_event.php