use config.version instead of spec[version]