fixed spawning tons of threads during login