improve logging of opts
add longjmp testcase for keeping stuff together and in proper dominance order