updated iOS app to use binary protocol