added alarm signal catch program