fixed bug with file argument parsing.