update context in routes