xmpp client ref pt 1