remove unnecessary debugging
upgrade middleware