don't use $schedules var if its not set