move SCT internal handling to different source file