added clientFactory to server