fixed bug in -numThreads N option