more work on extract_words