add alarm
finish normal logic
add update logic and mtj logic