downloads the remote file