added put functionality to client.