added setOutputFile functions