added client call to put document