bugfix eeprom read/write