add sc refresh implementation. Small refactoring