simplify thread_pool