added support for file loading via file:// protocol from other locations i.e. sdcard