pruned the signal handler