add thread-count command line arg