improved the log output