i guess this is preparation for node-xmpp/node-xmpp#173
otherwise see node-xmpp/node-xmpp#138