added some debug statements back in