added method to access thread_pool