added check that things appended in traverse are files
added check that things appended in traverse are files