add failsafe