fixed the command line parsing