clean up maybe_alert logic