chages to config
[UAA] refactor emit_config functions