remove redundant current-buffer-content idiom
might need that
fix stats
don't need that
factor out util and autocomplete