updating alert and debug