additional safeguards

three cheers for idiot proofing (this latest update includes safeguard
that check for valid date ranges)