Better auth-fail handling, fixing issue where flags can be ignored