support for both mon and osd configuration.