updated, add "local_infile" option