properly escape variable in error message
change logging so output from the augmenters goes to the batchlog, too