fix output file naming