updating config file creation to new method