Moved tw_unsafe_realloc to heap (unused)
fixed pre_run (oops)