move System.out buffering around