changed some log lines to the new loggermethod