modified to deduplicate routes based on casing