cleanup go client write