splitting up inspector (not totally sure on naming, but better for extension) and tidying up routing trie execution