try to add stage concept in a local segment.