better eeprom handling. wait for previous writes to complete before reading eeprom