make alerting more modular