remove url handling with java.net.URL