added return values to startExtraction and startMatching