some initial code to handle eeprom erase