ticket:3 modify custom middleware call order