added debug alerts