removed old WaitForAllDownloads function