Patched maxim PID and OS detection