added logic for comparing alerts with routes
merge