accidently deleted d[name] = self.name in __dict__ method, breaks things