replace logging to System.out