added some prints in AUTOMATIC_MODE_SWITCHING blocks