with RPC encoder