increase log levels in error cases and add support for diff if matplotlib is installed