cleaning up metadata.json