improve configuration file generation