make preemptive authentication work