remove dependency on hat-trie