code reuse for mcs config