fixed bug with SP not handling final status,
continue to modify processBatch to handle single transaction