update for new threadpool API