fix up some totp conditionals