add the crash code