improved the buffer reset interface