thread pool related changes