revert SharedPtr changes