moving GetConfig() UpdateConfig() into util/funcs so can use with collector.