updated eeprom reading