add Download Thread
delete debug code