added several functions to client
added several functions to client