handling pool_size in workers