adding alerts to error callbacks