completely fools proofing the failsafe code