rpc service and client