implementing extractor script