optimizations and api for alert_repsonse