default thread count set to 2*cpu_cores