res.send updated to avoid deprecation notice