improve the thread pool