add script for the metadata.json