extractor now also extracts category