renamed CliConfig to CliState and added a  flag