better middleware stacks