added details to error reporting