added ctx.locals as a recommended namespace for passing information to the frontend