tuning the threadpool