handle preambles properly, update metadata version.