extend text generator to generate many files