alarms api tweak