added threadpool size variables