extract buffer name logic into a formatter.

hold off on deprecation warnings for now...
pass in buffers to the formatter.