add better error handling for file transfers