get files is now a generator