updated error handling on the processing pipeline