textwriter.c now writes to more lines