put out exc keyword for diagnostics
output different types to a file