some broken text handling