some debug logging -changes