add utils for alarm