add rpc call and cast.