changed download to log better and be smarter with retry