minors
fix download file function
probably responsible for gzip decompression errors