added get/set output config api + unit tests