separate main and alarm config