add debug messages for production