replace `self.cfg['version']` with `self.version` (both work, but we consistently use `self.version`)