static middlewear