repaired save and load and i and o