filter routes with the id prefix before doing lookups