moved towards code isomorphism for download and remote_retrieve