implemented pool of clients and sharding