dynamic cpu detection