remove runWithBuffer API
test passed.