make methods of threadpool private