removed some more unused config code, refactored away some tight coupling problems in cfg namespace, fixed a unity build error