removed nthreads from globals