solved the stopping blocked client thread problem