fix segv
use do-while for conformance
tagged logs
the only way to set an env var in __attribute__((constructor)) is to rewrite an existing one
implement redo