reverted to old res.send(err)