added state preservation for saved schedules
state