fix outputfile