fixed initial iteration of BufferManager. WIP.