some work on parsing buffer into a word list