adapted log messages to use logger