played around with threads in the client