ported the change detector enable flag inside the detector initialization function