more debug info, also another potential fix