missed some shared_ptrs