Fly stocks and husbandry Flies were housed at 25 °C and 50–65% relative humidity on a 12 h light/12 h dark cycle, except for animals used in optogenetics experiments, which were reared in darkness. Stocks used for behavioural experiments were reared on standard molasses food, 2P imaging lines were reared on Würzburg food for at least five generations