adding a few more debug log statements