add some new method for xmpp php library