small cleanups
initial skeletons for time types and functions