use json to store alarms instead