add version and metadata