fix predictability of new vs old window and add some debug messages