fix line breaks in reporting of exceptions
some import fixups