detection and alerting works