fixed some broken data structures; attempting to build the routing table