adding in whole-directory processing