iterating over the ID's in the template to generate the client instead of doing a seek in the files