cleanup of metadata.json