adding back some debug messages