improve logging with verbose mode