moved some things out of scCommon