change define variables from app delegate to efenglobal, implement risk