switched to use RPCClient instead of RPCserver