fix minor bug
update state
add some first interface