progress on high level API
added buffer(count) API