fixed order of execution load conditions and detect EDR