add a bit more debug logging