fix output files