debug output class fixes