fix command line flags