parallelize build-tree