test download and fix some bugs in future