- updated to output files into individual files