working on generating files for each item of a particular type