move stanza sending to private method
chat is different: not only generate stanza, also write out