Refactor ScmConfig
refactor scmConfig