refactor generative matcher and move into helpers directory