add protection in x86 detect