not segfaulting anymore