add feature flag default middleware