move blagcfg to blagconf helper