debug level and output to the batch, just quick&dirty