improvements to schedule scripts
handle filtering of empty schedule intervals