better support for file and previous arguments passing