added date logging to output