register rpc service