added alarm loop in security, and implemented it in scribcurity