add threadscount setting