update metadata and version