this will generate multiple printouts per language/directory. not a big deal, but could add a flag to so it only prints once