this seems to stop bad asserts without less memory haemmorhage (still leaks somewhat)