cleaning up SharedNodePointer usage