moved routing table code into its own package