got the routing to work correctly