add replace* methods to client object, and avoid 400 on removing metadata