add test for segfaults
update test
things are much closer now, and the segfaults are much firther
make selfFreeing public