auth before thread