move the logging into logger, so it catches everything (facepalm); add last error/warning plugin and change globals.