added nthreads to logging