fixes to metadataframe