initial iteration of BufferManager. WIP.