implemented and optimized the way that wildcards work.

optimized some other find functions as well