added retry support to download chunks (even in batches)