reduce ABC complexity of safe mode handling