changed generator so we download the files instead of just reading it