added some more log statements