add capability to detect and store alarm event