improve logging code