moving towards code isomorphism for download and remote_retrieve