auto save to eeprom on power loss

still does not work