fixing command line args and shell script