add optional attribute to some fields in metadata, where necessary, including quotebox details