fix unref issues
merge stqte.modeCli and state.cliCommand