finialize the tree builder, and now address the grammar loading part