support for ThreadPool