added option to load file from url