added more log statements