add more debug logging