finished up util date functions and logging