merged structured append in main() with a config array