simplify logging + remove unnecessary method in Main.class