refactor LispBuffer