Switched raw pointers for smart ones
works here, heap corruption on rhskl5