better error reporting for processing items