add extra middleware example