improving some debug output