gaia trie tree implement go a step further and fix some bugs.