replaced sig setjmp/longjmp with default functions.