save_as_self_contained