Revert "remove some debug messages"

This reverts commit 22454c9a87b57b86ee1083bf66a701bdc9e9694d.