adding a few more debug statements