redesigned the eeprom stuff