new patterntext, fixes in destroy-routine