trie framework