make infile handling Right