add update procedure for ghost
fixes bugs wrt xmpp ssl use