almost got save working ok still hidden bug...