upgrade middleware dependency