changed feature extraction to work with wildcards