remove reference to threadpool