use url.openStream rather than getting file stream