edit exp-middleware