some minor cleanup in the thrift API.