revamp client API, does not use gui_rpc_client anymore