cleanup
replace eeprom_write with eeprom_update