add getter for metadata and volatile fields