renaming the routing map to routes, and making it a ref