updated set_extraction_state #166