pass config into the client factory