more download code done (need to add dictionary)