added some debug statements
this sometimes occurs'