workaround for global in mainConfigFile during build, mark dep confs as private