getting the routing to work