add a method to output debug data