rd: improved feature detection for required attribute