fixed some debug output