added a little more debug logging