working on XMPP delegate issue