fixed deprecated res.send