fixed up buffer class, now can serve metadata