put some concurrency inside the tree building