load/save state from/to eeprom