ported to new Logger class