now support download resume
some rearrangement of prefs