lib: update
add more demo code