add task queue and trie