started adding threading to client