stub buffer implementation