fix command line parsing