rewrite EEPROM calls