fixes to the url file reading