func of reading settings,to logic added lifeMode param