improved the debug output