update examples to use binary protocol