raw signal handler