better logging on result