added several functions to client