added some debug statements temporarily