added XMPP client and logging