sorting out routing mess