fixed config file creation