generate a config file