add the set reference doc to the reference toc
implement distributed collect on node level with doc granularity