fixing WriteState feature in ClientMethod