support new alert_handler signature