moved time-stuff into its own file