ticket:3 middleware
Merge branch 't3_middleware'