remove redundant command line flags