moved clearInterval into res.send to make sure it always gets cleared