beginnings of the RPC client