fix config file generation