possible fix for missing directories during search()