add and remove some debug trying to track down issue #307