add loop flags to (prev|next)sibling.