adapted RPC functions to work with evmessage