refactoring the creation of the ini files