adds debugging output