add redownload and max download limit