Short array syntax
Middleware fixes