simplify/optimize location lookup in routers