download on the fly

worked on downloading the files on the fly