updated to use new httpContext var in newest version of routers