saving JID into envelope