prune final list of patterns
track pattern parents
added missing underscore