better crach handling