change conneciton to client