adjusted some debug output