tweaked and automated logicalcore/threadcount