add debug flag to settings.