schedule management

added more code for handling and loading schedules.