extracting source segment indexes
implementing segment highlighting
adding extracted segments to repository