group all the download tasks.
optimize the ruby codes.