rewrite RPC methods