adding wrappers around buffer objects