fixing the command line script