script to listen to XMPP requests