add option to allow end time before start time