move client back into api
test protocol methods