changing client id to dynamically selected one