remove the SmartPointer stuff that never really worked