added signal handler
signal handler update