add some tools for client

add some tools for client