calendar events fully working except for the schedule inverted intervals