fix for error management on getRemoteFile , now catches exception &
returns error struct