better error handling when url gives us a non 200