some work on alarm and alarm manager