continuing to fix bugs in where the output files went