abstract debug flags in settings