search for filename and then for folder name