added extract as script