add logger initialize
add buffer update