replace System.out calls for loggers