more verbose logging on errors