added a schedule error checking functionality as requested by Dr.Down