changed config merging strategy from MS_DICTS_AND_LISTS to MS_DICTS
fixed a bug causing called-before-defined problem
handle cases if neither fqdn nor host is defined