converted to shared_ptr for xmpp thread