small fixes and improvements for download engine