adding in some more debug output, to see how the directories change with mass input