moved signal handler back