added a debugging step to determine if the autodetection is broken