catch MalformedURLException