using routers to attach resources