add buffer management module