make all CSC refs shared_ptrs