fixed command line parsing