reworked ini generator to make it possible to remove duplicates