URL, inputstream fix