adjust thread pool