not finish making change to use metadata instead of inspecting the file system everything