reading from classpath stream instead of url