update mapping of routes