modifying command line arguments handling to be able to use it without user interaction