tw_cli: support multiple controllers

* support multiple controllers
* simplified a bit