fix get_buffer() -> buffer()
add some functions