add rpc sample