added thclient ref