re-written simple xmpp client