additional logging for errors