more logging on error