fix deprecated res.send