failsafe layer implementation