adding basic sample extractor stuff