where is self.state set/initialized?