add metadata to tree