empty new course bug fixed, new support functions

added some time support functions, kinda accidentally deleted all my
stuff. :(