added traceback logging for batches