debug req and res