added some conditional get output files