#29 make function input to Xmpp module