AM: you cannot goto inside a loop, split legacy sections