normalize req res