updated debug messages to include datestamp