moving buffermap to buffermgr