minor modification to schedule API