minor debug logging changes