new valid time test, more scheduling bug fixes