add thread_pool creation