more trie refactoring

does this make it easier or harder to read? alas