added support for metadata.json generation
