restored debug messages