check outputfile