updated xmpp handler to support hash based event handling