better error reporting for failed steps