retry for curl downloads