client_factory uses keyword arguments instead of assigning attributes