moved sc object initialization to global scope