integration of threadpool (external lib)