centralized settings, and prevented duplicate getAlarms call