rename middleware