fixes all downloads and some other bugs too