added alarm_key api