add a method to dump warning outputs