Started rewriting the textWriter. almost there.