fixed local infile issue