fix config file creation