modular buffer management