add node limit in search
setjmp() and longjmp() cause issues with compiler optimizations, even using volatile.