update for new std::ptr API