cfgfile: support runtime modification