detect CPUs more carefully