added debug code for set alarm implementation