feature to enable/disable debug mode