set the metadata on process