add a few more debug statements to track down an error