update gapmatchelement plugin; add validation.