add thread num to config