parses over all files in a dir