improved/fixed background alarm handling