adding a little debug logging