enhanced error reporting