get rid of System.out.println and replace with file outputs