Update clientthread

hope this works