xmpp client ref pt 1
ref callbacks pt 1