updated logging to include the time