added method to set an external xmpp