input file cleanup