back to basics - middleware simplification