modified:   getcfg