added SHA-1 checks + repairs at download end