improve logging output