add rpc interface for rpc call