extract_with_category now works