update middleware list