catch errors with long url, move warning check up