added number of threads to configuration