move file finding logic into file-finder