implemented download retry count