update exp middleware example