client and clientThread fixed