add debug toggle in settings