replace rest of smart ptrs with plain pointers