added remote file option for script