change rpc client to use queue