fixed bug in routing, linked in test in better shape.