refactoring the Console output to only show for files with matches
catching for different types to get the "name" value
fiixng checks for "name" stuff mostly