enabling eeprom saving and cleaning up