script to create .metadata.json files