removing TermBuffer.write and all dependencies.