add client id detect