add metadata for resources