got a trie-tree somewhat working