add req and res