check cpuid support and minor fix