initial code for automatic data rebuild in eeprom