added methods for handling routers