added more function to client