removed fetch_alerts function