cleanup in Extractor