more fix for sighandler