ctx.locals => ctx.state. added some quick documentation