adding support for multi-name target with array matching and normalization of outputs