This fixes issue with reading file from filesystem rather than a url.  Also improves speed. by. a. HUGE. factor