A) A trajectory shows a target fly taking off in relation to a threatener, food, and time. B) Target V (black) and threatener WA (orange) for A. C) Total behaviors (i-iii) and distance from the center of the food (iv) per fly for mixed pairs of the indicated genotypes (bottom = transit histograms for all flies). D) Threats are evoked by male cues and visual motion, mediated by modular AIP neurons, and comprised of threshold-dependent motor elements. E) Conceivable circuit diagrams for the interaction of sensory input, AIP neurons, and motor output (not mutually exclusive).