added logic for "when" to save/load segments - but not actually doing it