router: support multiple routers of the same type with different configs