begun adding code for prepare xmpp