use macro to enable/disable debug message
polling or sleep