improve logging on errors