added code kit failsafe