added get/set alarm functions