block extractor stuff