changed self.config to config