added purge_downloads