fixed and hopefully working routing table reading