move loadDownloadState to init