complete beta 1
properly use sigsetjmp and siglongjmp