massive changes including middleware, context processing and initial data