improve logging barrier