add a timeout to url shortener