add the debug output fouction