initial work on text buffer