finish download module for resource.(TODO:md5sum)