changed download function for zip files