buffer: wrapped some useful methods