rework with classes
fix -stop-after for txt, pdf, docx