update up script
update client script

add state