add debug setting