accept buffer
add test