fix req_in middlewares processing behavior & improve some logs