fixed typo, added time to log
added error msg to log