crash detection now works