add support for min_pool_size