added eeprom funcs