check agent label before applying mapping rules