updated to use new RPC methods