added debug setting