add check_crash & fixed pointer bug