rpc_clientrefactored