added elvmax alarm handling