detect upcoming hazardous situations and react