move eeprom functions to storage.h