the non hwt part of trie.c seems to work now