Revert "remove debug messages"

This reverts commit 5dc0182af70278a7c495d134bccd283e9841ffd6.