fix up text parser