updated transformer to include client in the transformer