use this.state instead of this.locals