add conditional middleware middleware example