removed redundant MalformedURLException catch