fixes #2 - but untested. This shoul run through the schedule once and set pins to their current state on startup