some improvements in download system