update downloads to use apt-get looping, add repair section