some fix in checking index
debug off in eeprom