fix ALL the (known) segfaults