section extractor now more flexible