change thread-pool for a dynamic one with limit