more debug statements to try to get to the bottom of this